package com.wfuhui.modules.store.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.store.dao.UserCouponDao;
import com.wfuhui.modules.store.entity.UserCouponEntity;
import com.wfuhui.modules.store.service.UserCouponService;



@Service("userCouponService")
public class UserCouponServiceImpl implements UserCouponService {
	@Autowired
	private UserCouponDao userCouponDao;
	
	@Override
	public UserCouponEntity queryObject(Integer id){
		return userCouponDao.queryObject(id);
	}
	
	@Override
	public List<UserCouponEntity> queryList(Map<String, Object> map){
		return userCouponDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userCouponDao.queryTotal(map);
	}
	
	@Override
	public void save(UserCouponEntity userCoupon){
		userCouponDao.save(userCoupon);
	}
	
	@Override
	public void update(UserCouponEntity userCoupon){
		userCouponDao.update(userCoupon);
	}
	
	@Override
	public void delete(Integer id){
		userCouponDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userCouponDao.deleteBatch(ids);
	}
	
}
